package tuling.netty.splitpacket.domain;

import java.util.Arrays;

/**
 * @author RenGaoshuai
 * @date 2023/12/4 14:49
 * @description 自定义netty分包传输对象
 */
public class RgsMessageProtocol {

    private Integer len;

    private byte[] content;

    public RgsMessageProtocol() {
    }

    public RgsMessageProtocol(Integer len, byte[] content) {
        this.len = len;
        this.content = content;
    }

    public Integer getLen() {
        return len;
    }

    public void setLen(Integer len) {
        this.len = len;
    }

    public byte[] getContent() {
        return content;
    }

    public void setContent(byte[] content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "RgsMessageProtocol{" +
                "len=" + len +
                ", content=" + Arrays.toString(content) +
                '}';
    }
}
